{smcl}
{txt}{sf}{ul off}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\J.PARK\Dropbox\Discrimination Project_for me\Organizational Diversity\2023 Version_Merging\FINAL\CFA_2011.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 8 Aug 2024, 13:16:56
{txt}
{com}. 
. 
. import delimited "C:\Users\J.PARK\Dropbox\DISCRIMINATION PROJECT\FEVS\FEVS_2010-2019\FEVS2011_PRDF.csv"
{res}{txt}(encoding automatically selected: ISO-8859-1)
{res}{text}(98 vars, 266,376 obs)

{com}. drop if q17=="X"
{txt}(11,875 observations deleted)

{com}. drop if q17==""
{txt}(1,046 observations deleted)

{com}. drop if q37=="X"
{txt}(10,292 observations deleted)

{com}. drop if q37==""
{txt}(5,559 observations deleted)

{com}. drop if q38=="X"
{txt}(8,929 observations deleted)

{com}. drop if q38==""
{txt}(1,272 observations deleted)

{com}. drop if q15=="X"
{txt}(2,348 observations deleted)

{com}. drop if q15==""
{txt}(533 observations deleted)

{com}. drop if q22=="X"
{txt}(7,083 observations deleted)

{com}. drop if q22==""
{txt}(624 observations deleted)

{com}. drop if q25=="X"
{txt}(4,028 observations deleted)

{com}. drop if q25==""
{txt}(580 observations deleted)

{com}. drop if q33=="X"
{txt}(3,581 observations deleted)

{com}. drop if q33==""
{txt}(622 observations deleted)

{com}. drop if q48==.
{txt}(2,247 observations deleted)

{com}. drop if q49==.
{txt}(678 observations deleted)

{com}. destring q17, replace
{txt}q17: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q37, replace
{txt}q37: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q38, replace
{txt}q38: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q15, replace
{txt}q15: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q22, replace
{txt}q22: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q25, replace
{txt}q25: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q33, replace
{txt}q33: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. drop if q55=="X"
{txt}(2,859 observations deleted)

{com}. drop if q55==""
{txt}(2,646 observations deleted)

{com}. drop if q45=="X"
{txt}(5,100 observations deleted)

{com}. drop if q45==""
{txt}(750 observations deleted)

{com}. drop if q34=="X"
{txt}(2,504 observations deleted)

{com}. drop if q34==""
{txt}(460 observations deleted)

{com}. destring q55, replace
{txt}q55: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q45, replace
{txt}q45: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q34, replace
{txt}q34: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. drop if dsuper=="X"
{txt}(0 observations deleted)

{com}. drop if dsuper==""
{txt}(5,974 observations deleted)

{com}. drop if dsex=="X"
{txt}(0 observations deleted)

{com}. drop if dsex==""
{txt}(1,580 observations deleted)

{com}. drop if dminority==.
{txt}(4,071 observations deleted)

{com}. gen minority = 0 if dminority==2
{txt}(60,844 missing values generated)

{com}. replace minority = 1 if dminority==1
{txt}(60,844 real changes made)

{com}. gen gender = 1 if dsex == "B"
{txt}(96,409 missing values generated)

{com}. replace gender = 0 if dsex == "A"
{txt}(96,409 real changes made)

{com}. gen supervisor = 1 if dsuper == "B" | dsuper == "C"
{txt}(122,787 missing values generated)

{com}. replace supervisor = 0 if dsuper == "A"
{txt}(122,787 real changes made)

{com}. 
. svyset [pweight=postwt]

{txt}Sampling weights:{col 19}{res}postwt
             {txt}VCE:{col 19}{res}linearized
     {txt}Single unit:{col 19}{res}missing
        {txt}Strata 1:{col 19}<one>
 Sampling unit 1:{col 19}<observations>
           FPC 1:{col 19}<zero>
{p2colreset}{...}

{com}. 
. svy linearized : sem (JUSTICE -> DISTRIBUTIVE, ) (JUSTICE -> PROCEDURAL, ) (JUSTICE -> INTERPERSONAL, ) (DISTRIBUTIVE -> q22, ) (DISTRIBUTIVE -> q25, ) (DISTRIBUTIVE -> q33, ) (PROCEDURAL -> q15, ) (PROCEDURAL -> q17, ) (PROCEDURAL -> q37, ) (PROCEDURAL -> q38, )(INTERPERSONAL -> q48, ) (INTERPERSONAL -> q49, ), standardized latent(JUSTICE DISTRIBUTIVE PROCEDURAL INTERPERSONAL ) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:179,135}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,236,704}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:179,135}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:179,134}

{p 0 7}{space 1}{text:( 1)}{space 1} [q22]DISTRIBUTIVE = 1{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} [q15]PROCEDURAL = 1{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} [q48]INTERPERSONAL = 1{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} [DISTRIBUTIVE]JUSTICE = 1{p_end}
{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}  Linearized
{col 1}       Standardized{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural         {col 21}{txt}{c |}
{space 2}{col 3}DISTRIBUTIVE     {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .8539738{col 33}{space 2} .0033094{col 44}{space 1}  258.05{col 53}{space 3}0.000{col 61}{space 4} .8474876{col 74}{space 3} .8604601
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}PROCEDURAL       {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .9862243{col 33}{space 2} .0032344{col 44}{space 1}  304.92{col 53}{space 3}0.000{col 61}{space 4} .9798849{col 74}{space 3} .9925636
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}INTERPERSONAL    {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .7054303{col 33}{space 2}  .003648{col 44}{space 1}  193.37{col 53}{space 3}0.000{col 61}{space 4} .6982802{col 74}{space 3} .7125804
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement        {col 21}{txt}{c |}
{space 2}{col 3}q22              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8402702{col 33}{space 2} .0022262{col 44}{space 1}  377.44{col 53}{space 3}0.000{col 61}{space 4} .8359068{col 74}{space 3} .8446336
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.526011{col 33}{space 2} .0089275{col 44}{space 1}  282.95{col 53}{space 3}0.000{col 61}{space 4} 2.508513{col 74}{space 3} 2.543509
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q25              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8215846{col 33}{space 2} .0026175{col 44}{space 1}  313.88{col 53}{space 3}0.000{col 61}{space 4} .8164544{col 74}{space 3} .8267148
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.640174{col 33}{space 2} .0098165{col 44}{space 1}  268.95{col 53}{space 3}0.000{col 61}{space 4} 2.620934{col 74}{space 3} 2.659415
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q33              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .7061096{col 33}{space 2} .0030182{col 44}{space 1}  233.95{col 53}{space 3}0.000{col 61}{space 4}  .700194{col 74}{space 3} .7120251
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.363602{col 33}{space 2} .0073704{col 44}{space 1}  320.69{col 53}{space 3}0.000{col 61}{space 4} 2.349156{col 74}{space 3} 2.378048
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q15              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .6171089{col 33}{space 2} .0045129{col 44}{space 1}  136.74{col 53}{space 3}0.000{col 61}{space 4} .6082636{col 74}{space 3} .6259542
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.393316{col 33}{space 2} .0158335{col 44}{space 1}  214.31{col 53}{space 3}0.000{col 61}{space 4} 3.362283{col 74}{space 3}  3.42435
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q17              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .7321905{col 33}{space 2} .0034079{col 44}{space 1}  214.85{col 53}{space 3}0.000{col 61}{space 4} .7255111{col 74}{space 3} .7388699
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.098128{col 33}{space 2} .0133613{col 44}{space 1}  231.87{col 53}{space 3}0.000{col 61}{space 4}  3.07194{col 74}{space 3} 3.124316
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q37              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8201277{col 33}{space 2} .0027445{col 44}{space 1}  298.83{col 53}{space 3}0.000{col 61}{space 4} .8147486{col 74}{space 3} .8255067
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.847296{col 33}{space 2} .0112846{col 44}{space 1}  252.32{col 53}{space 3}0.000{col 61}{space 4} 2.825178{col 74}{space 3} 2.869414
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q38              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2}   .79734{col 33}{space 2} .0028966{col 44}{space 1}  275.26{col 53}{space 3}0.000{col 61}{space 4} .7916626{col 74}{space 3} .8030173
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.457669{col 33}{space 2} .0164628{col 44}{space 1}  210.03{col 53}{space 3}0.000{col 61}{space 4} 3.425402{col 74}{space 3} 3.489935
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q48              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9310616{col 33}{space 2} .0026147{col 44}{space 1}  356.08{col 53}{space 3}0.000{col 61}{space 4} .9259368{col 74}{space 3} .9361864
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.912895{col 33}{space 2} .0187688{col 44}{space 1}  208.48{col 53}{space 3}0.000{col 61}{space 4} 3.876109{col 74}{space 3} 3.949682
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q49              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9095807{col 33}{space 2}   .00233{col 44}{space 1}  390.39{col 53}{space 3}0.000{col 61}{space 4} .9050141{col 74}{space 3} .9141474
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 4.214734{col 33}{space 2} .0229761{col 44}{space 1}  183.44{col 53}{space 3}0.000{col 61}{space 4} 4.169701{col 74}{space 3} 4.259766
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}var(e.q22){c |}{col 21}{res}{space 2}  .293946{col 33}{space 2} .0037413{col 61}{space 4} .2867039{col 74}{space 3} .3013711
{txt}{space 10}var(e.q25){c |}{col 21}{res}{space 2} .3249987{col 33}{space 2}  .004301{col 61}{space 4} .3166773{col 74}{space 3} .3335388
{txt}{space 10}var(e.q33){c |}{col 21}{res}{space 2} .5014093{col 33}{space 2} .0042623{col 61}{space 4} .4931244{col 74}{space 3} .5098333
{txt}{space 10}var(e.q15){c |}{col 21}{res}{space 2} .6191766{col 33}{space 2} .0055699{col 61}{space 4} .6083553{col 74}{space 3} .6301904
{txt}{space 10}var(e.q17){c |}{col 21}{res}{space 2}  .463897{col 33}{space 2} .0049905{col 61}{space 4} .4542182{col 74}{space 3} .4737821
{txt}{space 10}var(e.q37){c |}{col 21}{res}{space 2} .3273906{col 33}{space 2} .0045016{col 61}{space 4} .3186854{col 74}{space 3} .3363337
{txt}{space 10}var(e.q38){c |}{col 21}{res}{space 2}  .364249{col 33}{space 2} .0046192{col 61}{space 4}  .355307{col 74}{space 3}  .373416
{txt}{space 10}var(e.q48){c |}{col 21}{res}{space 2} .1331242{col 33}{space 2}  .004869{col 61}{space 4} .1239152{col 74}{space 3} .1430176
{txt}{space 10}var(e.q49){c |}{col 21}{res}{space 2} .1726629{col 33}{space 2} .0042386{col 61}{space 4} .1645521{col 74}{space 3} .1811735
{txt}{space 1}var(e.DISTRIBUTIVE){c |}{col 21}{res}{space 2} .2707287{col 33}{space 2} .0056522{col 61}{space 4}  .259874{col 74}{space 3} .2820367
{txt}{space 3}var(e.PROCEDURAL){c |}{col 21}{res}{space 2} .0273617{col 33}{space 2} .0063797{col 61}{space 4}  .017325{col 74}{space 3} .0432127
{txt}var(e.INTERPERSONAL){c |}{col 21}{res}{space 2} .5023681{col 33}{space 2} .0051469{col 61}{space 4}  .492381{col 74}{space 3} .5125579
{txt}{space 8}var(JUSTICE){c |}{col 21}{res}{space 2}        1{col 33}{space 2}        .{col 61}{space 4}        .{col 74}{space 3}        .
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.039}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.975}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict justice, latent(JUSTICE)
{res}{txt}
{com}. 
. svy linearized : sem (DIVERSITY -> q34, ) (DIVERSITY -> q45, ) (DIVERSITY -> q55, ), standardized latent(DIVERSITY) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:179,135}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,236,704}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:179,135}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:179,134}

{p 0 7}{space 1}{text:( 1)}{space 1} [q34]DIVERSITY = 1{p_end}
{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}  Linearized
{col 1} Standardized{col 15}{c |} Coefficient{col 27}  std. err.{col 39}      t{col 47}   P>|t|{col 55}     [95% con{col 68}f. interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement  {col 15}{txt}{c |}
{space 2}{col 3}q34        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .6681232{col 27}{space 2} .0044867{col 38}{space 1}  148.91{col 47}{space 3}0.000{col 55}{space 4} .6593295{col 68}{space 3}  .676917
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.557891{col 27}{space 2} .0162302{col 38}{space 1}  219.21{col 47}{space 3}0.000{col 55}{space 4}  3.52608{col 68}{space 3} 3.589701
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q45        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2}  .757834{col 27}{space 2} .0046659{col 38}{space 1}  162.42{col 47}{space 3}0.000{col 55}{space 4}  .748689{col 68}{space 3} .7669789
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.734465{col 27}{space 2} .0177691{col 38}{space 1}  210.17{col 47}{space 3}0.000{col 55}{space 4} 3.699638{col 68}{space 3} 3.769292
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q55        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .8041212{col 27}{space 2} .0040694{col 38}{space 1}  197.60{col 47}{space 3}0.000{col 55}{space 4} .7961452{col 68}{space 3} .8120971
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.630809{col 27}{space 2} .0172334{col 38}{space 1}  210.68{col 47}{space 3}0.000{col 55}{space 4} 3.597032{col 68}{space 3} 3.664586
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}var(e.q34){c |}{col 15}{res}{space 2} .5536113{col 27}{space 2} .0059953{col 55}{space 4} .5419846{col 68}{space 3} .5654875
{txt}{space 4}var(e.q45){c |}{col 15}{res}{space 2} .4256877{col 27}{space 2} .0070719{col 55}{space 4} .4120502{col 68}{space 3} .4397766
{txt}{space 4}var(e.q55){c |}{col 15}{res}{space 2} .3533891{col 27}{space 2} .0065446{col 55}{space 4} .3407919{col 68}{space 3}  .366452
{txt}var(DIVERSITY){c |}{col 15}{res}{space 2}        1{col 27}{space 2}        .{col 55}{space 4}        .{col 68}{space 3}        .
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.000}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.799}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict diversity, latent(DIVERSITY)
{res}{txt}
{com}. 
. 
. keep if agency =="AM" | agency =="IB" | agency =="FQ" | agency =="ED" | agency =="DN" | agency =="HU" | agency =="ST" | agency =="EP" | agency =="EE" | agency =="FC" | agency =="DR" | agency =="HF" | agency =="FT" | agency =="GS" | agency =="NN" | agency =="NQ" | agency =="CU" | agency =="SN" | agency =="NL" | agency =="NF" | agency =="NU" | agency =="OM" | agency =="BG" | agency =="RR" | agency =="SE" | agency =="SB" | agency =="SZ" | subelem =="DD34" | subelem =="DD10" | subelem =="DD63" | subelem =="DD35" | subelem =="DD04" | subelem =="DD07" | subelem =="DD27" | subelem =="DD26"| subelem =="DD60" | subelem =="AG03" | subelem =="AGFA" |  subelem =="AG37" | subelem =="AG11" | subelem =="AG16" | subelem =="AG90" | subelem =="CM63" | subelem =="CM55" | subelem =="CM57" | subelem =="CM54" | subelem =="CM56" | subelem =="DD16" | subelem =="HE90" | subelem =="HE39" | subelem =="HE70" | subelem =="HE36" | subelem =="HE34" | subelem =="HE37" | subelem =="HE38" | subelem =="HE10" | subelem =="HSCB" | subelem =="HSBE" | subelem =="HSBC" | subelem =="HSAB" | subelem =="HSAC" | subelem =="HSBD" | subelem =="HSBB" | subelem =="HSAD" | subelem =="DJ15" | subelem =="DJ03" | subelem =="DJEA" | subelem =="DJ12" | subelem =="DJ09" | subelem =="DJ02" | subelem =="DJ08" | subelem =="DJ11" | subelem =="DLLS" | subelem =="DLET" | subelem =="DLWH"| subelem =="DLWC" | subelem =="DLMS" | subelem =="DLSH" | subelem =="DLPW" | agency =="AF" | agency =="AR" | subelem =="IN06" | subelem =="IN05" | subelem =="IN07" | subelem =="IN15" | subelem =="IN08" | subelem =="IN10" | subelem =="IN01" | agency =="NV" | subelem =="TRAI" | subelem =="TR91" | subelem =="TR93" | subelem =="TRAJ" | subelem =="TRTG" | subelem =="TRAD" | subelem =="TD02" | subelem =="TD03" | subelem =="VAPA" | subelem =="VALA" | subelem =="VATA" | subelem =="DD21"
{txt}(19,772 observations deleted)

{com}. 
. svy linearized : sem (JUSTICE -> DISTRIBUTIVE, ) (JUSTICE -> PROCEDURAL, ) (JUSTICE -> INTERPERSONAL, ) (DISTRIBUTIVE -> q22, ) (DISTRIBUTIVE -> q25, ) (DISTRIBUTIVE -> q33, ) (PROCEDURAL -> q15, ) (PROCEDURAL -> q17, ) (PROCEDURAL -> q37, ) (PROCEDURAL -> q38, )(INTERPERSONAL -> q48, ) (INTERPERSONAL -> q49, ), standardized latent(JUSTICE DISTRIBUTIVE PROCEDURAL INTERPERSONAL ) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:159,363}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,185,255}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:159,363}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:159,362}

{p 0 7}{space 1}{text:( 1)}{space 1} [q22]DISTRIBUTIVE = 1{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} [q15]PROCEDURAL = 1{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} [q48]INTERPERSONAL = 1{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} [DISTRIBUTIVE]JUSTICE = 1{p_end}
{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}  Linearized
{col 1}       Standardized{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural         {col 21}{txt}{c |}
{space 2}{col 3}DISTRIBUTIVE     {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .8533834{col 33}{space 2} .0034381{col 44}{space 1}  248.21{col 53}{space 3}0.000{col 61}{space 4} .8466448{col 74}{space 3}  .860122
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}PROCEDURAL       {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .9869046{col 33}{space 2} .0033617{col 44}{space 1}  293.57{col 53}{space 3}0.000{col 61}{space 4} .9803157{col 74}{space 3} .9934935
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}INTERPERSONAL    {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .7057112{col 33}{space 2} .0037919{col 44}{space 1}  186.11{col 53}{space 3}0.000{col 61}{space 4} .6982792{col 74}{space 3} .7131432
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement        {col 21}{txt}{c |}
{space 2}{col 3}q22              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8404913{col 33}{space 2} .0023115{col 44}{space 1}  363.62{col 53}{space 3}0.000{col 61}{space 4} .8359609{col 74}{space 3} .8450217
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.522587{col 33}{space 2} .0092341{col 44}{space 1}  273.18{col 53}{space 3}0.000{col 61}{space 4} 2.504488{col 74}{space 3} 2.540686
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q25              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8220244{col 33}{space 2} .0027191{col 44}{space 1}  302.32{col 53}{space 3}0.000{col 61}{space 4}  .816695{col 74}{space 3} .8273537
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}   2.6384{col 33}{space 2} .0101741{col 44}{space 1}  259.33{col 53}{space 3}0.000{col 61}{space 4} 2.618459{col 74}{space 3} 2.658341
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q33              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .7059451{col 33}{space 2} .0031329{col 44}{space 1}  225.33{col 53}{space 3}0.000{col 61}{space 4} .6998047{col 74}{space 3} .7120856
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.359008{col 33}{space 2} .0076179{col 44}{space 1}  309.67{col 53}{space 3}0.000{col 61}{space 4} 2.344077{col 74}{space 3} 2.373939
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q15              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .6164721{col 33}{space 2} .0046948{col 44}{space 1}  131.31{col 53}{space 3}0.000{col 61}{space 4} .6072703{col 74}{space 3} .6256739
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.391885{col 33}{space 2} .0164296{col 44}{space 1}  206.45{col 53}{space 3}0.000{col 61}{space 4} 3.359683{col 74}{space 3} 3.424087
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q17              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .7312123{col 33}{space 2} .0035469{col 44}{space 1}  206.16{col 53}{space 3}0.000{col 61}{space 4} .7242604{col 74}{space 3} .7381641
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.103517{col 33}{space 2} .0139366{col 44}{space 1}  222.69{col 53}{space 3}0.000{col 61}{space 4} 3.076201{col 74}{space 3} 3.130832
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q37              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2}  .819799{col 33}{space 2} .0028581{col 44}{space 1}  286.83{col 53}{space 3}0.000{col 61}{space 4} .8141971{col 74}{space 3} .8254009
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  2.85107{col 33}{space 2} .0117549{col 44}{space 1}  242.54{col 53}{space 3}0.000{col 61}{space 4} 2.828031{col 74}{space 3}  2.87411
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q38              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .7968674{col 33}{space 2} .0030152{col 44}{space 1}  264.28{col 53}{space 3}0.000{col 61}{space 4} .7909576{col 74}{space 3} .8027772
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.463372{col 33}{space 2}  .017158{col 44}{space 1}  201.85{col 53}{space 3}0.000{col 61}{space 4} 3.429743{col 74}{space 3} 3.497002
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q48              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9308749{col 33}{space 2} .0027292{col 44}{space 1}  341.08{col 53}{space 3}0.000{col 61}{space 4} .9255258{col 74}{space 3}  .936224
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.916357{col 33}{space 2} .0195205{col 44}{space 1}  200.63{col 53}{space 3}0.000{col 61}{space 4} 3.878097{col 74}{space 3} 3.954617
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q49              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9093186{col 33}{space 2} .0024272{col 44}{space 1}  374.64{col 53}{space 3}0.000{col 61}{space 4} .9045614{col 74}{space 3} .9140759
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 4.222287{col 33}{space 2} .0239567{col 44}{space 1}  176.25{col 53}{space 3}0.000{col 61}{space 4} 4.175332{col 74}{space 3} 4.269242
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}var(e.q22){c |}{col 21}{res}{space 2} .2935744{col 33}{space 2} .0038855{col 61}{space 4} .2860568{col 74}{space 3} .3012896
{txt}{space 10}var(e.q25){c |}{col 21}{res}{space 2} .3242759{col 33}{space 2} .0044703{col 61}{space 4} .3156315{col 74}{space 3} .3331571
{txt}{space 10}var(e.q33){c |}{col 21}{res}{space 2} .5016415{col 33}{space 2} .0044233{col 61}{space 4} .4930463{col 74}{space 3} .5103864
{txt}{space 10}var(e.q15){c |}{col 21}{res}{space 2} .6199622{col 33}{space 2} .0057885{col 61}{space 4} .6087201{col 74}{space 3} .6314119
{txt}{space 10}var(e.q17){c |}{col 21}{res}{space 2} .4653286{col 33}{space 2} .0051871{col 61}{space 4} .4552723{col 74}{space 3}  .475607
{txt}{space 10}var(e.q37){c |}{col 21}{res}{space 2} .3279295{col 33}{space 2} .0046862{col 61}{space 4} .3188721{col 74}{space 3} .3372442
{txt}{space 10}var(e.q38){c |}{col 21}{res}{space 2} .3650024{col 33}{space 2} .0048055{col 61}{space 4} .3557042{col 74}{space 3} .3745436
{txt}{space 10}var(e.q48){c |}{col 21}{res}{space 2} .1334719{col 33}{space 2}  .005081{col 61}{space 4} .1238756{col 74}{space 3} .1438115
{txt}{space 10}var(e.q49){c |}{col 21}{res}{space 2} .1731396{col 33}{space 2} .0044142{col 61}{space 4} .1647005{col 74}{space 3} .1820112
{txt}{space 1}var(e.DISTRIBUTIVE){c |}{col 21}{res}{space 2} .2717368{col 33}{space 2}  .005868{col 61}{space 4} .2604756{col 74}{space 3} .2834849
{txt}{space 3}var(e.PROCEDURAL){c |}{col 21}{res}{space 2} .0260194{col 33}{space 2} .0066354{col 61}{space 4} .0157843{col 74}{space 3} .0428913
{txt}var(e.INTERPERSONAL){c |}{col 21}{res}{space 2} .5019717{col 33}{space 2} .0053519{col 61}{space 4} .4915909{col 74}{space 3} .5125717
{txt}{space 8}var(JUSTICE){c |}{col 21}{res}{space 2}        1{col 33}{space 2}        .{col 61}{space 4}        .{col 74}{space 3}        .
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.039}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.976}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict justice2, latent (JUSTICE)
{res}{txt}
{com}. 
. svy linearized : sem (DIVERSITY -> q34, ) (DIVERSITY -> q45, ) (DIVERSITY -> q55, ), standardized latent(DIVERSITY) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:159,363}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,185,255}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:159,363}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:159,362}

{p 0 7}{space 1}{text:( 1)}{space 1} [q34]DIVERSITY = 1{p_end}
{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}  Linearized
{col 1} Standardized{col 15}{c |} Coefficient{col 27}  std. err.{col 39}      t{col 47}   P>|t|{col 55}     [95% con{col 68}f. interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement  {col 15}{txt}{c |}
{space 2}{col 3}q34        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .6672253{col 27}{space 2} .0046709{col 38}{space 1}  142.85{col 47}{space 3}0.000{col 55}{space 4} .6580704{col 68}{space 3} .6763802
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.562234{col 27}{space 2} .0169091{col 38}{space 1}  210.67{col 47}{space 3}0.000{col 55}{space 4} 3.529093{col 68}{space 3} 3.595376
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q45        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2}  .758087{col 27}{space 2} .0048588{col 38}{space 1}  156.02{col 47}{space 3}0.000{col 55}{space 4} .7485639{col 68}{space 3} .7676101
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.736104{col 27}{space 2} .0184664{col 38}{space 1}  202.32{col 47}{space 3}0.000{col 55}{space 4}  3.69991{col 68}{space 3} 3.772297
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q55        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2}  .804391{col 27}{space 2} .0042351{col 38}{space 1}  189.93{col 47}{space 3}0.000{col 55}{space 4} .7960903{col 68}{space 3} .8126918
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.636151{col 27}{space 2} .0179599{col 38}{space 1}  202.46{col 47}{space 3}0.000{col 55}{space 4}  3.60095{col 68}{space 3} 3.671352
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}var(e.q34){c |}{col 15}{res}{space 2} .5548104{col 27}{space 2} .0062331{col 55}{space 4} .5427271{col 68}{space 3} .5671626
{txt}{space 4}var(e.q45){c |}{col 15}{res}{space 2} .4253041{col 27}{space 2} .0073668{col 55}{space 4} .4111078{col 68}{space 3} .4399907
{txt}{space 4}var(e.q55){c |}{col 15}{res}{space 2}  .352955{col 27}{space 2} .0068134{col 55}{space 4} .3398504{col 68}{space 3}  .366565
{txt}var(DIVERSITY){c |}{col 15}{res}{space 2}        1{col 27}{space 2}        .{col 55}{space 4}        .{col 68}{space 3}        .
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.000}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.799}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. 
. predict diversity2, latent (DIVERSITY)
{res}{txt}
{com}. 
. sum justice, detail

                   {txt}Factor score (JUSTICE)
{hline 61}
      Percentiles      Smallest
 1%    {res}-2.159866      -2.312516
{txt} 5%    {res}-1.515938      -2.312516
{txt}10%    {res}-1.050919      -2.312516       {txt}Obs         {res}    159,363
{txt}25%    {res}-.3531836      -2.312516       {txt}Sum of wgt. {res}    159,363

{txt}50%    {res} .2243384                      {txt}Mean          {res} .0841422
                        {txt}Largest       Std. dev.     {res} .7966163
{txt}75%    {res} .6159365       1.346108
{txt}90%    {res}  1.05866       1.346108       {txt}Variance      {res} .6345975
{txt}95%    {res} 1.225885       1.346108       {txt}Skewness      {res}-.7414748
{txt}99%    {res} 1.346108       1.346108       {txt}Kurtosis      {res} 3.277357
{txt}
{com}. 
. sum justice2, detail

                   {txt}Factor score (JUSTICE)
{hline 61}
      Percentiles      Smallest
 1%    {res}-2.161196      -2.313442
{txt} 5%    {res}  -1.5166      -2.313442
{txt}10%    {res}-1.050613      -2.313442       {txt}Obs         {res}    159,363
{txt}25%    {res}-.3520103      -2.313442       {txt}Sum of wgt. {res}    159,363

{txt}50%    {res} .2251311                      {txt}Mean          {res} .0848387
                        {txt}Largest       Std. dev.     {res}   .79709
{txt}75%    {res} .6167405       1.346666
{txt}90%    {res} 1.060203       1.346666       {txt}Variance      {res} .6353524
{txt}95%    {res} 1.226825       1.346666       {txt}Skewness      {res}-.7421079
{txt}99%    {res} 1.346666       1.346666       {txt}Kurtosis      {res} 3.278225
{txt}
{com}. 
. sum diversity, detail

                  {txt}Factor score (DIVERSITY)
{hline 61}
      Percentiles      Smallest
 1%    {res}-1.887912      -1.887912
{txt} 5%    {res}  -1.1127      -1.887912
{txt}10%    {res}-.7235624      -1.887912       {txt}Obs         {res}    159,363
{txt}25%    {res} -.250523      -1.887912       {txt}Sum of wgt. {res}    159,363

{txt}50%    {res} .2133918                      {txt}Mean          {res} .0501946
                        {txt}Largest       Std. dev.     {res} .5954845
{txt}75%    {res} .4499115       .9138263
{txt}90%    {res} .7520834       .9138263       {txt}Variance      {res} .3546018
{txt}95%    {res} .9138263       .9138263       {txt}Skewness      {res}-.8651297
{txt}99%    {res} .9138263       .9138263       {txt}Kurtosis      {res}  3.90237
{txt}
{com}. 
. sum diversity2, detail

                  {txt}Factor score (DIVERSITY)
{hline 61}
      Percentiles      Smallest
 1%    {res}-1.884637      -1.884637
{txt} 5%    {res}-1.109905      -1.884637
{txt}10%    {res}-.7222586      -1.884637       {txt}Obs         {res}    159,363
{txt}25%    {res}-.2496616      -1.884637       {txt}Sum of wgt. {res}    159,363

{txt}50%    {res} .2133781                      {txt}Mean          {res} .0505173
                        {txt}Largest       Std. dev.     {res} .5946292
{txt}75%    {res} .4496766       .9127163
{txt}90%    {res} .7518112       .9127163       {txt}Variance      {res} .3535839
{txt}95%    {res} .9127163       .9127163       {txt}Skewness      {res}-.8652685
{txt}99%    {res} .9127163       .9127163       {txt}Kurtosis      {res} 3.902211
{txt}
{com}. 
. corr justice justice2
{txt}(obs=159,363)

             {c |}  justice justice2
{hline 13}{c +}{hline 18}
     justice {c |}{res}   1.0000
    {txt}justice2 {c |}{res}   1.0000   1.0000

{txt}
{com}. 
. corr diversity diversity2 
{txt}(obs=159,363)

             {c |} divers~y divers~2
{hline 13}{c +}{hline 18}
   diversity {c |}{res}   1.0000
  {txt}diversity2 {c |}{res}   1.0000   1.0000

{txt}
{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\J.PARK\Dropbox\Discrimination Project_for me\Organizational Diversity\2023 Version_Merging\FINAL\CFA_2011.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 8 Aug 2024, 13:17:30
{txt}{.-}
{smcl}
{txt}{sf}{ul off}